package com.zzw.basic.fanxing;

import java.util.ArrayList;
import java.util.List;

public class ListTest {

	//ʹ��ͨ���
	public void test(List<?> c){
		for(int i = 0;i < c.size();i++){
			System.out.println(c.get(i));
		}
	}
	
	public static void main(String[] args) {
		List<?> list = new ArrayList<String>();
		//list.add("abc");
		List<String> l1 = new ArrayList<String>();
		List<Integer> l2 = new ArrayList<Integer>();
		System.out.println(l1.getClass() == l2.getClass());
		List<Integer> li = new ArrayList<>();
		li.add(1);
		li.add(2);
		List ll = li;
		List<String> ls = ll;
		//System.out.println(ls.get(0));
		List<String>[] lsa = new List[10];
		Object[] oa = lsa;
	}
}
